import java.awt.*;
import javax.swing.*;

public class ButtonPanel extends JPanel{
	//	Local Variables
	private MoveToThisButton _ToThisButton;
	private MoveToShortButton _ToShortButton;
	private NewCustomerButton _addCusButton;
	private OCLineButton _opCloseQueueButton;
	private ServeCustomerButton _serveButton;

	//	Peer objects
	private JFrame _parentFrame;
	private StoreLogic _logic;
	private QueuePanel _queueP;
	private FloorPanel _somethingP;

	public ButtonPanel(JFrame aParentFrame,QueuePanel aQueuePanel,FloorPanel aSomethingPanel, StoreLogic aLogic)
	{
		super(new GridLayout(5,1));
		_parentFrame = aParentFrame;
		_queueP = aQueuePanel;
		_somethingP = aSomethingPanel;
		_logic = aLogic;
		iniGUI();
	}

	private void iniGUI()
	{
		_addCusButton = new NewCustomerButton(_parentFrame, _logic);
		_ToThisButton = new MoveToThisButton(_parentFrame, _logic, _queueP, _somethingP);
		_ToShortButton = new MoveToShortButton(_parentFrame, _logic, _somethingP);
		_serveButton = new ServeCustomerButton(_parentFrame, _logic, _queueP);
		_opCloseQueueButton = new OCLineButton(_parentFrame, _logic, _queueP);
		this.add(_addCusButton);
		this.add(_ToThisButton);
		this.add(_ToShortButton);
		this.add(_serveButton);
		this.add(_opCloseQueueButton);
	}

}
